# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DatasetVersion do
  @moduledoc """
  Describes the dataset version.

  ## Attributes

  *   `bigQueryDatasetName` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the associated BigQuery dataset.
  *   `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this DatasetVersion was created.
  *   `displayName` (*type:* `String.t`, *default:* `nil`) - The user-defined name of the DatasetVersion. The name can be up to 128 characters long and can consist of any UTF-8 characters.
  *   `etag` (*type:* `String.t`, *default:* `nil`) - Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
  *   `metadata` (*type:* `any()`, *default:* `nil`) - Required. Output only. Additional information about the DatasetVersion.
  *   `modelReference` (*type:* `String.t`, *default:* `nil`) - Output only. Reference to the public base model last used by the dataset version. Only set for prompt dataset versions.
  *   `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
  *   `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
  *   `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
  *   `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this DatasetVersion was last updated.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :bigQueryDatasetName => String.t() | nil,
          :createTime => DateTime.t() | nil,
          :displayName => String.t() | nil,
          :etag => String.t() | nil,
          :metadata => any() | nil,
          :modelReference => String.t() | nil,
          :name => String.t() | nil,
          :satisfiesPzi => boolean() | nil,
          :satisfiesPzs => boolean() | nil,
          :updateTime => DateTime.t() | nil
        }

  field(:bigQueryDatasetName)
  field(:createTime, as: DateTime)
  field(:displayName)
  field(:etag)
  field(:metadata)
  field(:modelReference)
  field(:name)
  field(:satisfiesPzi)
  field(:satisfiesPzs)
  field(:updateTime, as: DateTime)
end

defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DatasetVersion do
  def decode(value, options) do
    GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DatasetVersion.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DatasetVersion do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
